<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../Public/css/golbal.css" rel="stylesheet" type="text/css" />

<php>
$style=$_COOKIE['style'];
if($_COOKIE['style']){
	$style = $_COOKIE['style'];
}
else
{
	$style='css1';
}
</php>

<link title="css1" href="../Public/css/s1_1.css" type="text/css" rel="stylesheet"  <if condition="$style eq 'css1'"><else />disabled="false"</if>>
<link title="css2" href="../Public/css/s1_2.css" type="text/css" rel="stylesheet" <if condition="$style eq 'css2'"><else />disabled="false"</if>>
<link title="css3" href="../Public/css/s1_3.css" type="text/css" rel="stylesheet" <if condition="$style eq 'css3'"><else />disabled="false"</if>>
<link title="css4" href="../Public/css/s1_4.css" type="text/css" rel="stylesheet" <if condition="$style eq 'css4'"><else />disabled="false"</if>>

<title><?php if(isset($_title_)) : ?>{$_title_}-<?php endif;?>{$_basetitle_}</title>
<js href="__PUBLIC__/Js/Jquery/jquery-1.4.4.min.js" />
<present name='_desc_'><meta name="description" content="{$_desc_}" /></present>

<present name='_key_'><meta name="keywords" content="{$_key_}" /></present>



<SCRIPT src="../Public/js/styleswitch.js" type=text/javascript></SCRIPT>
<SCRIPT src="../Public/js/jquery-1.2.6.pack.js" type=text/javascript></SCRIPT>
<script type="text/javascript">
//$(document).bind("contextmenu", function() { return false; });
	$(function(){
		$("#nano").find("a").click(function(){
			$("#search_keyword").val($(this).text());	
			change();
			$("#form1").submit();
		});		
	})
	
	
	
		function change()
		{

			if($("#category").val()!=0)
			{
				$("#form1").attr("action","{:U('Search/more')}");
			}
			
		}

	function gopage(nowpage){
		if(nowpage=='')nowpage=1;
		var totalpage=parseInt("<?php echo $_SESSION['pagetotalPages'];?>");

		if(parseInt(nowpage)==nowpage)
		{
			if(nowpage<=0)
			{
				alert('请输入大于0的整数页码!');
				return false;
			}
			else if(nowpage>totalpage)
			{
				alert('请输入小于最大分页数的整数页码!');
				return false;
			}
		}
		else
		{
			alert('请输入大于0的整数页码!');
			return false;
		}
		var obj=location.href;
		var url=obj.substring(0,obj.indexOf("?")+1);
		var paraString=obj.substring(obj.indexOf("?")+1,obj.length).split("&");
		url="<?php echo $_SESSION['pageurl'];?>";
		url+="&p="+nowpage;
		window.location=url;
	}
	
</script>
</head>

<body>
<div class="wrapper">
<div class="header">
<div class="ht">
<div class="logo"><a href="{:U('Index/index')}"><img src="../Public/images/logo.png" /></a></div>
<div class="info">
<div class="bs"> 
<a class="styleswitch a1" style="CURSOR: pointer" title="绿色" rel=css1></a> 
<a class="styleswitch a2" style="CURSOR: pointer" title="蓝色" rel=css2></a> 
<a class="styleswitch a3" style="CURSOR: pointer" title="灰色" rel=css3></a> 
<a class="styleswitch a4" style="CURSOR: pointer" title="橙色" rel=css4></a> <span>换肤</span> </div>
			Hi，欢迎您！<eq name='is_login' value='1'><span>您好，</span>
             <a class="cGreen" href="{:U('Personal/index')}">{:getUserInfo('nickname')}</a> | <a href="{:U('user/logout')}" >【退出】</a><else/> <a href="{:U('User/login')}">登录</a>|<a href="{:U('User/reg')}">注册</a></eq></div>
</div>
<div class="hc_l">
<div class="hc_r">
<div class="nav">
<ul>
<li><a href="{:U('Index/index')}">首页</a></li>
<li><a href="{:U('Picture/index')}">图片</a></li>
<li><a href="{:U('Video/index')}">视频</a></li>
<li><a href="{:U('Flash/index')}">动画</a></li>
<li><a href="{:U('Game/index')}">游戏</a></li>
<li><a href="{:U('Article/index')}">文章</a></li>
<li><a href="{:U('Image/index')}">挂图</a></li>
<li><a href="{:U('Book/index')}">图书</a></li>
<li><a href="{:U('Exhibits/index')}">展品</a></li>
<li class="last"><a href="{:U('Knowledge/index')}">知识题</a></li>
</ul>
</div>
</div>
</div>
<div class="hb_l">
<div class="hb_r">
<div class="hb">
<div class="search">
<form action="{:U('Search/index')}" method="post" onsubmit="return change();" id="form1">
<select id="category" name="category">
<option value="0">全部频道</option>
<volist id="vo" name="sclist">
<option value="{$vo.cateid}">{$vo.catename}频道</option>
</volist></select>
<input type="text" id="search_keyword" name="search_keyword" class="search_txt"/>
<input type="submit" class="search_bt" value=""/>
</form>
</div>
<div class="ano" id="nano" >
<span>热门关键词：</span>
<volist name="keyArr" id="ka">
<a id='{$ka.keyid}' href="#" class="hotword">{$ka.keyword}</a>&nbsp;
</volist>
</div>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>